using mixpanel;

namespace Voodoo.Sauce.Internal.Analytics
{
	internal class CustomMixpanelEvent : MixpanelEvent
	{
		public Value Props;

		protected override void PerformTrackEvent()
		{
			if (Props != null)
			{
				Mixpanel.Track(base.EventName, Props);
			}
			else
			{
				Mixpanel.Track(base.EventName);
			}
		}

		public CustomMixpanelEvent(string eventName, Value props)
			: base(eventName)
		{
			Props = props;
		}
	}
}
